package pcb.control.delegates 
{
	import com.intel.patterns.responder.IResponder;
	import com.intel.service.HttpService;
	import com.intel.service.ServiceEvent;
	import com.intel.utils.Debugger;
	import flash.net.URLRequestMethod;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class Del_loadLesson 
	{
		
		private var responder:IResponder;
		private var service:HttpService;
	
		public function Del_loadLesson(responder:IResponder) 
		{
			this.responder = responder;
			this.service = new HttpService();
			service.addEventListener(ServiceEvent.RESULT, responder.result);			
			service.addEventListener(ServiceEvent.FAULT, responder.fault);
			
			service.method = URLRequestMethod.GET;
			
		}
		
		public function load(url:String):void 
		{			
			service.url = url;
			service.send(); 
		}
		
	}
	
}